#include "MultiMedia.h"
#include <iostream>
#include <iomanip>
#include <fstream>
#include <vector>
#include <string>

using namespace std;

MultiMedia::MultiMedia()
{
	name = "";
	year = 0;
}

MultiMedia::MultiMedia(string name, int year)
{
	this->name = name;
	this->year = year;
}

string& MultiMedia::GetName()
{
	return name;
}


int MultiMedia::GetYear()
{
	return year;
}

ostream& operator<<(ostream& stream, MultiMedia& M)
{
	stream << "(" << M.name << ',' << "," << M.year << ")";
	return stream;
}

istream& operator>>(istream& stream, MultiMedia& M)
{
	char c;
	stream >> c;
	getline(stream, M.name, ',');
	stream >> M.year >> c;

	return stream;
}


MultiMedia::~MultiMedia()
{
}
